import { service } from '/@/utils/request';

// 系统认证API
export const useSysAuthApi = () => {
  return {
    // 获取当前用户信息
    getUserInfo: () => {
      return service({
        url: '/api/sysAuth/userInfo',
        method: 'get',
      });
    },
  };
};

// 系统角色API  
export const useSysRoleApi = () => {
  return {
    // 获取角色列表
    list: (params?: any) => {
      return service({
        url: '/api/sysRole/list',
        method: 'get',
        params,
      });
    },
  };
};